package com.delivery.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel(description = "套餐分页查询DTO")
@Data
public class SetmealPageQueryDTO {

    @ApiModelProperty(value = "分类ID", example = "1")
    private Long categoryId;

    @ApiModelProperty(value = "套餐名称", example = "商务套餐")
    private String name;

    @ApiModelProperty(value = "页码", required = true, example = "1")
    @NotNull(message = "页码不能为空")
    private Integer page;

    @ApiModelProperty(value = "每页记录数", required = true, example = "10")
    @NotNull(message = "每页条数不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "套餐状态 0-停售 1-启售", example = "1")
    private Integer status;
}
